package com.linghang.wusthelper.dao.primary;

import com.linghang.wusthelper.entity.primary.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

/**
 * @author origin
 */
@Repository
//主数据源的SqlSessionTemplate
@Qualifier("primarySqlSessionTemplate")
public interface StudentDao {

    int insertNewStu(@Param("stuNum") String stuNum,@Param("password") String password,@Param("UUID") String UUID);

    Student selectByStuNum(String stuNum);

    int updateByStuNum(Student student);

    int updateJWCPassword(@Param("stuNum") String stuNum, @Param("password") String password);

    int updateUUID(@Param("stuNum") String stuNum,@Param("UUID") String UUID);

    int updateLIBPassword(@Param("stuNum") String stuNum,@Param("password") String password);

    int lhlogin(@Param("stuNum") String stuNum,@Param("password") String password);
}
